const router = require('koa-router')();
const {orderModel} = require('../model/order');
// 获取订单
router.get('/order', async (ctx, next) => {
    await orderModel.getOrder(ctx);
});
// 增加订单
router.post('/add/order', async (ctx, next) => {
    await orderModel.addOrder(ctx);
});
// 删除订单
router.post('/delete/order', async (ctx, next) => {
    await orderModel.deleteOrder(ctx);
});
// 编辑新闻
// router.post('/edit/order', async (ctx, next) => {
//     await orderModel.editOrder(ctx);
// });
module.exports = router;